<%--
  Created by IntelliJ IDEA.
  User: zhoufeihao
  Date: 2021/5/8
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>显示</title>
</head>
<body>
<div style="text-align: center">
    <form action="/selectStudentServlet" method="get" autocomplete="off">
        姓名：<input type="text" name="name">
        年龄：<input type="number" name="age">
        <button type="submit">搜索</button>
    </form>
</div>


<br>


<div style="text-align: center">
    <h3>学生信息</h3>
</div>
<div>
    <table border="1px" align="center" cellpadding="1px" cellspacing="1px">
        <tr>
            <td>学生姓名</td>
            <td>学生年龄</td>
        </tr>

        <c:forEach items="${studentList}" var="stu">
            <tr>
                <td>${stu.name}</td>
                <td>${stu.age}</td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
